﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace YouHP.Model
{
    public class TreatmentInfo : IHydratable
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public string PinYin { get; set; }
        public int Type { get; set; }
        public string Intro { get; set; }
        public string Desp { get; set; }
        public DateTime UpdateTime { get; set; }
        public int IsQuantified { get; set; }
        public string MeasurementUnits { get; set; }    /*计量单位*/
        public string LimitValues { get; set; }         /*可填写范围限制*/
        public double MaxValue { get; set; }            /*最大值*/
        public double MinValue { get; set; }            /*最小值*/
        public string ChoicesDescription { get; set; }  /*范围描述（在非量化中存放选项值，多个选项采用下面格式，如：“1=好@2=坏”）*/
        public int IsValid { get; set; }                /*是否已经处理(0-未处理, 1-已处理)*/
        public int UserId { get; set; }                 /*上传用户id*/
        public string Unit { get; set; }
        public string Frequency { get; set; }
        public string GeneralName { get; set; }         //药品通用名
        public string Merchant { get; set; }            //药商

        public string TypeName { get; set; }
        public int PatientCount { get; set; }
        public int PatientId { get; set; }
        public string PatientName { get; set; }
        public string PatientAvatar { get; set; }

        public TreatmentInfo()
        {
            this.Id = -1;
            this.IsQuantified = 1;
            this.MeasurementUnits = this.ChoicesDescription = GeneralName = Merchant = PatientName = PatientAvatar = "";
            this.Unit = "";
            this.Frequency = "每天";
            this.MaxValue = this.MinValue = 0;

            PatientId = PatientCount = 0;
        }

        #region IHydratable 成员
        public bool Fill(System.Data.IDataReader dr)
        {
            return false;
        }
        #endregion
    }
}
